﻿using ELearningSystem.Gateway.Entities;
using FluentNHibernate.Mapping;

namespace ELearningSystem.Gateway.Mappings
{
    public class CommentMap:ClassMap<Comment>
    {
        public CommentMap()
        {
            Id(x => x.Id);
            Map(x => x.Text);
            References(x => x.Learner)
                .Not.LazyLoad()
                .Cascade.None();
            Map(x => x.Date);
        }
    }
}
